home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / tvg.xml < prev    next >
Text File  |  2002-09-27  |  3KB  |  76 lines

  1. <search function="tvg">
  2.   <name>TV Guide Online</name>
  3.   <description>Look up TV programming by keyword, or list all programming 
  4.   in a particular category - <wbr/>/action, <wbr/>/comedy, <wbr/>/adult, 
  5.   <wbr/>/movie, <wbr/>/drama, <wbr/>/horror, <wbr/>/mystery, <wbr/>/scifi, 
  6.   <wbr/>/western, <wbr/>/sports, <wbr/>/news, <wbr/>/health, <wbr/>/science, 
  7.   <wbr/>/educational, <wbr/>/family, <wbr/>/childrens, <wbr/>/talk, <wbr/>/soaps, 
  8.   <wbr/>/shopping and <wbr/>/music.
  9.   <div class="helpboxDescLabels">Examples:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr>
  12.         <td>tvg simpsons</td>
  13.       </tr>
  14.       <tr>
  15.         <td>tvg /comedy</td>
  16.       </tr>
  17.     </table>
  18.   </description>
  19.   <category>Entertainment</category>
  20.   <link>http://www.tvguide.com/</link>
  21.   <form name="tvgf"
  22.         action="http://www.tvguide.com/listings/search/SearchResults.asp"
  23.         method="get">
  24.     <input type="hidden" name="FormText" value=""/>
  25.     <input type="hidden" name="FormCategories" value=""/>
  26.   </form>
  27.   <script><![CDATA[
  28.     function tvg(q) 
  29.     {
  30.       var args = parseArgs(q, "action, comedy, adult, movie, drama, horror, mystery, scifi, western, sports, news, health, science, educational, family, childrens, talk, soaps, shopping, music");
  31.       if (q == "")
  32.         openSearchWindow("http://www.tvguide.com/listings/search/Search.asp");
  33.       else if( args.switches.length == 1 )
  34.       {
  35.         switch( args.switches[0].name )
  36.         {
  37.           case "action": genre = "action & adventure"; break;
  38.           case "comedy": genre = "comedy"; break;
  39.           case "adult": genre = "adult"; break;
  40.           case "movie": genre = "Movie"; break;
  41.           case "drama": genre = "drama"; break;
  42.           case "horror": genre = "horror"; break;
  43.           case "mystery": genre = "mystery & suspense"; break;
  44.           case "scifi": genre = "sci-fi & paranormal"; break;
  45.           case "western": genre = "western"; break;
  46.           case "sports": genre = "Sports"; break;
  47.           case "news": genre = "Newscasts & newsmagazines"; break;
  48.           case "health": genre = "health & fitness"; break;
  49.           case "science": genre = "science & technology"; break;
  50.           case "educational": genre = "educational"; break;
  51.           case "family": genre = "kids & teens"; break;
  52.           case "childrens": genre = "Children\'s"; break;
  53.           case "talk": genre = "talk & discussion"; break;
  54.           case "soaps": genre = "soap opera"; break;
  55.           case "shopping": genre = "shopping & classifieds"; break;
  56.           case "music": genre = "music"; break;
  57.         }
  58.         document.tvgf.FormText.value = "";
  59.         document.tvgf.FormCategories.value = genre;
  60.         submitForm(tvgf);
  61.       }
  62.       else
  63.       {
  64.         document.tvgf.FormText.value = args.q;
  65.         document.tvgf.FormCategories.value = "";
  66.         submitForm(tvgf)
  67.       }
  68.     }
  69.   ]]></script>
  70.  
  71.   <copyright>
  72.     Copyright (c) 2002 David Bau
  73.     Distributed under the terms of the
  74.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  75.   </copyright>
  76. </search>